﻿@model IEnumerable<Link>
@if (Model != null) {
	<ul id="TopMenu">
		@{int i = 0;}
		@foreach (Link link in Model) {
			if (i > 0) {
				<li class="splitter">&nbsp;</li>
			}

			<li @(link.Selected ? "class=\"selected\"".AsHtml() : null)>
				<a href="@link.Url" @(String.IsNullOrEmpty(link.Target) ? null : "target=\"" + link.Target + "\"".AsHtml())>@link.Text</a>
			</li>
			i++;
		}
	</ul>
}